package com.exam.mapper;

import com.exam.po.Paper;
import com.exam.po.PaperExample;
import java.util.List;

import com.exam.po.PaperManage;
import org.apache.ibatis.annotations.Param;

public interface PaperMapper {
    int countByExample(PaperExample example);

    int deleteByExample(PaperExample example);

    int deleteByPrimaryKey(Integer paperid);
    /**
     * 添加
     * @param record
     * @return
     */
    int insert(Paper record);

    int insertSelective(Paper record);

    List<Paper> selectByExample(PaperExample example);

    Paper selectByPrimaryKey(Integer paperid);

    int updateByExampleSelective(@Param("record") Paper record, @Param("example") PaperExample example);

    int updateByExample(@Param("record") Paper record, @Param("example") PaperExample example);

    int updateByPrimaryKeySelective(Paper record);

    int updateByPrimaryKey(Paper record);

    /*
     * @Author mahaoqi
     * @Description 添加一个试卷
     * @Date 2021/1/13 10:48
     * @Param [paper]
     * @return int
     **/
    int insertOne(Paper paper);

    /**
     * 查找所有
     * @return
     */
    List<PaperManage> selectAll();

    /**
     * 根据ID查找
     * @param paperId
     * @return
     */
    List<PaperManage> selectById(Integer paperId);



}